<script setup>
import {useStore} from 'vuex'
import { computed } from 'vue'
const store = useStore()
const user = computed(() => store.state.user)
</script>
<template>
     <h1>欢迎您, {{user.account}}</h1>
  <div>
    <router-link to="/">Home</router-link> | 
    <router-link to="/about">About</router-link>
  </div>
  <router-view/>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
